export default time => {
  const date = new Date(time)
  const y = date.getFullYear()
  const m = date.getMonth() + 1
  const d = date.getDate()

  return `${y}-${m}-${d}`
}
